import request from '@/utils/request'

// 订单列表
export async function getorderpage(params) {
  const res = await request({
    url: '/Order/getorderpage',
    method: 'post',
    params
  })
  return res
}

// 发货
export async function SetExpCode(params) {
  const res = await request({
    url: '/Order/SetExpCode',
    method: 'post',
    params
  })
  return res
}

// 处理售后
export async function AftersellOrder(params) {
  const res = await request({
    url: '/Order/AftersellOrder',
    method: 'post',
    params
  })
  return res
}

// 售后处理记录
export async function AftersellList(params) {
  const res = await request({
    url: '/Order/AftersellList',
    method: 'post',
    params
  })
  return res
}

// 导出
export async function order_excel(params) {
  const res = await request({
    url: '/Order/order_excel',
    method: 'get',
    params,
    responseType: "blob" //arraybuffer也可以
  })
  return res
}


// 盲盒 订单列表
export async function getorderpage_Box(params) {
  const res = await request({
    url: '/Box/getorderpage_Box',
    method: 'post',
    params
  })
  return res
}

// 盲盒奖品 订单列表
export async function getorderpage_BoxAttr(params) {
  const res = await request({
    url: '/Box/getorderpage_BoxAttr',
    method: 'post',
    params
  })
  return res
}

// 盲盒奖品 发货
export async function SetExpCode_Box(params) {
  const res = await request({
    url: '/Box/SetExpCode_Box',
    method: 'post',
    params
  })
  return res
}

// 盲盒 导出
export async function order_Box_excel(params) {
  const res = await request({
    url: '/Box/order_Box_excel',
    method: 'get',
    params,
    responseType: "blob" //arraybuffer也可以
  })
  return res
}